package com.hrprojectback.dto;


import java.util.ArrayList;
import java.util.List;

public class DeptTreeQueryInfo {

    private String code;//部门编码

    private String name;//部门名称

    private String pcode = "0";//上级部门编码

    private String pname;//上级部门名称

    private List<Department> childDept = new ArrayList();//部门信息树

    private int pageNumber;//首页

    private int pageNum = 1;//前往的页数

    private int pageSize = 1;//每页显示的数据

    public DeptTreeQueryInfo() {
    }

    public DeptTreeQueryInfo(String code, String name, String pcode, String pname, List<Department> childDept, int pageNumber, int pageNum, int pageSize) {
        this.code = code;
        this.name = name;
        this.pcode = pcode;
        this.pname = pname;
        this.childDept = childDept;
        this.pageNumber = pageNumber;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPcode() {
        return pcode;
    }

    public void setPcode(String pcode) {
        this.pcode = pcode;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public List<Department> getChildDept() {
        return childDept;
    }

    public void setChildDept(List<Department> childDept) {
        this.childDept = childDept;
    }

    public int getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(int pageNumber) {
        this.pageNumber = pageNumber;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    @Override
    public String toString() {
        return "DeptTreeQueryInfo{" +
                "code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", pcode='" + pcode + '\'' +
                ", pname='" + pname + '\'' +
                ", childDept=" + childDept +
                ", pageNumber=" + pageNumber +
                ", pageNum=" + pageNum +
                ", pageSize=" + pageSize +
                '}';
    }
}
